package com.kbs.changwonlove.util;

import org.json.JSONObject;

import android.content.Context;

public class ApplicationVersionUtil {

	public static String currentlyVersion;
	public String latestVersion;
	public static JSONObject object;
	
	public static boolean isLatestVersion(Context context){
		
		/*
		try {
			PackageInfo packageInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);
			currentlyVersion = packageInfo.versionName;
			
			try {
				object = HttpRequestUtil.version(context, "com.stxMobileoffice");
				
				if(object != null && Constant.HTTP_OK.equals(object.getString("HttpStatus"))){
					return true;
				}else{
					return false;
				}
			} catch (Exception e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
				return false;
			}
		} catch (NameNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			return false;
		}
		*/
		
		return true;
	}
}
